package com.slkj.mapper;

import com.slkj.pojo.DocumentAll;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DocumentAllMapper extends Mapper<DocumentAll> {


    @Select("SELECT * FROM sl_document WHERE doc_uuid=(SELECT l.doc_uuid FROM sl_doc_reply_log l \n" +
            "WHERE collect='1' and receive_people=#{name})")
    List<DocumentAll> findByCollectAndName(@Param("name") String name);
}
